package com.xxzx.publicprevention.config;

        import org.springframework.context.annotation.Configuration;
        import org.springframework.format.FormatterRegistry;
        import org.springframework.http.converter.HttpMessageConverter;
        import org.springframework.validation.MessageCodesResolver;
        import org.springframework.validation.Validator;
        import org.springframework.web.method.support.HandlerMethodArgumentResolver;
        import org.springframework.web.method.support.HandlerMethodReturnValueHandler;
        import org.springframework.web.servlet.HandlerExceptionResolver;
        import org.springframework.web.servlet.config.annotation.*;

        import java.util.List;

/**
 * @作者: thw
 * @Date: 2020/6/2 9:54
 */
@Configuration
public class WebMVC implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("../templates/admin/index.html");
    }
}